package com.openbravo.pos.payment;

import com.openbravo.pos.forms.AppLocal;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class PaymentPanelBasic extends JPanel
  implements PaymentPanel
{
  private double m_dTotal;
  private String m_sTransactionID;
  private JPaymentNotifier m_notifier;
  private JLabel jLabel1;

  public PaymentPanelBasic(JPaymentNotifier paramJPaymentNotifier)
  {
    this.m_notifier = paramJPaymentNotifier;
    initComponents();
  }

  public JComponent getComponent()
  {
    return this;
  }

  public void activate(String paramString, double paramDouble)
  {
    this.m_sTransactionID = paramString;
    this.m_dTotal = paramDouble;
    this.jLabel1.setText(this.m_dTotal > 0.0D ? AppLocal.getIntString("message.paymentgatewayext") : AppLocal.getIntString("message.paymentgatewayextrefund"));
    this.m_notifier.setStatus(true, true);
  }

  public PaymentInfoMagcard getPaymentInfoMagcard()
  {
    if (this.m_dTotal > 0.0D)
      return new PaymentInfoMagcard("", "", "", null, null, null, this.m_sTransactionID, this.m_dTotal);
    return new PaymentInfoMagcardRefund("", "", "", null, null, null, this.m_sTransactionID, this.m_dTotal);
  }

  private void initComponents()
  {
    this.jLabel1 = new JLabel();
    add(this.jLabel1);
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.pos.payment.PaymentPanelBasic
 * JD-Core Version:    0.6.0
 */